package hu.monitor.server.remoting;

import hu.monitor.remoting.transport.Client;
import hu.monitor.remoting.transport.ClientPool;

import java.io.IOException;

public class ObjectHolderClientPool implements ClientPool {
	private final Client client;

	public ObjectHolderClientPool(final Client client) {
		this.client = client;
	}
	@Override
	public Client getClient() {
		return this.client;
	}

	@Override
	public void releaseClient(final Client client) throws IOException {
		client.close();
	}

}
